<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>栏目管理</title> 
    
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico"> <link href="/public/admin/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/public/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/public/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/public/admin/css/animate.css" rel="stylesheet">
    <link href="/public/admin/css/style.css?v=4.0.0" rel="stylesheet">
    <link href="/public/admin/css/ourstyle.css?v=4.0.0" rel="stylesheet">
    <!-- 全局js -->
    <script src="/public/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/public/admin/js/bootstrap.min.js?v=3.3.5"></script>
    <!-- 自定义js -->
    <script src="/public/admin/js/content.js?v=1.0.0"></script>
    <script src="/public/admin/js/plugins/layer/layer.min.js"></script>
    <script type="text/javascript" src="/public/admin/js/article.js"></script> 
    <!-- jQuery Validation plugin javascript-->
    <script src="/public/admin/js/plugins/validate/jquery.validate.min.js"></script> 
    
    <script src="/public/admin/js/demo/form-validate-demo.js"></script>
    <script src="/public/admin/js/plugins/iCheck/icheck.min.js"></script>
    <!-- CKeditor -->
    <script src="/public/admin/plugins/ckeditor/ckeditor.js"></script>
    <script src="/public/admin/plugins/ckfinder/ckfinder.js"></script> 
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>栏目内容</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <form action="{:url('System/templateHandle')}" method="post" id="templateFrom" onclick="return false" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">模板名称：</label>
                                <div class="col-sm-8">
                                    <input class="configInput form-control" name="template" minlength="2" type="text" value="{$cat_info.template}" required="" aria-required="true">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">序号：</label>
                                <div class="col-sm-8">
                                    <input class="configInput form-control" name="sort" type="text" value="{$cat_info.sort}" placeholder="默认99">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">模板简介：</label>
                                <div class="col-sm-8">
                                    <textarea id="" class="form-control valid" name="text_info" style="height:70px;" placeholder="">{$cat_info.text_info}</textarea>
                                </div>
                            </div> 
                            <div class="form-group">
                                <label class="col-sm-2 control-label">其他属性：</label>
                                <div class="col-sm-8">
                                    <div class="col-sm-10">
                                        <label class="checkbox-inline i-checks">
                                            <input type="checkbox" name="is_hide" value="1" {if $cat_info['is_hide'] == 1}checked="checked"{/if} />隐藏</label> 
                                    </div>
                                </div>
                            </div> 
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <input type="hidden" name="act" value="{$act}">
                                    <input type="hidden" name="id" value="{$cat_info.id}">
                                    <button class="btn btn-primary" onclick="ajax_submit_form('templateFrom','{:url('System/templateHandle')}')" type="submit">保存</button>
                                </div>
                            </div> 
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div> 

    
    <script> 
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>
</body>
</html>
